package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class TopicDto extends BaseDto{

    private Boolean isAddKnowledgePoint;

    @ApiModelProperty(value = "知识点")
    private KnowledgePointDto knowledgePoint;

    @NotNull(message = "题目类型不能为空")
    @ApiModelProperty(value = "题目类型")
    private Integer type;

    @NotNull(message = "难度不能为空")
    @ApiModelProperty(value = "难度")
    private Integer hard;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "题目材料")
    private String  master;

    @ApiModelProperty(value = "抽题数,默认为1")
    private Integer count = 1;
}
